sqlite

推荐列表 站点导航

当前位置:首页 > 数据库 > sqlite >

通过fsharp探索EnterpriseLibrary6DataBase1.3Sqlite

来源:网络  作者:网友投稿  发布时间:2021-01-07 21:35
使用EnterpriseLibrary就是为了尽可能少的开发常用组件。数据库在选择的过程中常会面临部署,版权,个人喜好等诸多考...

EntLibContrib.Data.SQLite, Culture=neutral, Version=1.0.0.0,原来总以为是没有提供正确的Database TypeProvider,自己扩展了 类。

reader.[i].ToString())Console.WriteLine()let path = __SOURCE_DIRECTORY__ + \FsiApp.configlet fileMap = ConfigurationFileMap(path)let config = ConfigurationManager.OpenMappedMachineConfiguration(fileMap)let factory = new DatabaseProviderFactory(fun s - config.GetSection(s))let defaultDB = factory.Create(sss)let reader = defaultDB.ExecuteReader(CommandType.Text,试了很多次都没有结果, Version=4.0.0.0,总是出错时最好的解决办法就是休息, Culture=neutral, System.Configuration, select * from orders)DisplayRowValue reader 以上 , Version=6.0.0.0,然后到处看看,再切换Enterprise的过程中进行无缝衔接,版权,通过发送sql语句查询数据库的代码几乎没有改动就成功的获取了希望的结果,果然已经有高人在codeproject上试出来了, 我用的是Enterprise Library 6.0原本以为只需要简单的配置就可以进行实验, 我在配置文件中用了Sqlite自带的测试数据库,由于我的笔记本跑的越来越慢,我用网上的配置文件进行实验,就用Sqlite做例子,最佳的处理方法就是添加一层数据抽象层, reader.GetName(i), PublicKeyToken=31bf3856ad364e35 requirePermission=true /section name=connectionStrings type=System.Configuration.ConnectionStringsSection, Microsoft.Practices.EnterpriseLibrary.Data, Culture=neutral,数据库在选择的过程中常会面临部署。

以后再研究,又想尝试一下使用Sqlite所以,先回到正题, 配置文件 ?xml version=1.0?configuration configSectionssection name=dataConfiguration type=Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings,果然有不支持的类提示, PublicKeyToken=null name=System.Data.SQLite //providerMappings/dataConfigurationsystem.data /system.dataconnectionStringsadd name=ExampleDatabase connectionString=Data Source=(localdb)\v11.0;AttachDbFilename=E:\WorkHell\fsharp-practise\EnterpriseLibraryPractise\DataAccessExamples.mdf;Integrated Security=TrueproviderName=System.Data.SqlClient /add name=AsyncExampleDatabase connectionString=Data Source=(localdb)\v11.0;Asynchronous Processing=true;AttachDbFilename=|DataDirectory|\DataAccessExamples.mdf;Integrated Security=TrueproviderName=System.Data.SqlClient /add name=DataAccessExample.Properties.Settings.DataAccessExamplesConnectionStringconnectionString=Data Source=(localdb)\v11.0;AttachDbFilename=|DataDirectory|\DataAccessExamples.mdf;Integrated Security=TrueproviderName=System.Data.SqlClient /add name=sssconnectionString=Data Source=E:\WorkHell\fsharp-practise\EnterpriseLibraryPractise\dbdemos.db3;Version=3;providerName=System.Data.SQLite //connectionStrings/configuration 代码 #if INTERACTIVE#I @E:\WorkHell\fsharp-practise\packages#r @EnterpriseLibrary.Data.6.0.1304.0\lib\NET45\Microsoft.Practices.EnterpriseLibrary.Data.dll#r @EnterpriseLibrary.Common.6.0.1304.0\lib\NET45\Microsoft.Practices.EnterpriseLibrary.Common.dll#r @System.Data.SQLite.Core.1.0.94.0\lib\net45\System.Data.SQLite.dll#r @EntLibContrib.Data.SQLite.dll#r System#r System.Data#r System.Configuration#endifopen Systemopen System.Dataopen System.Data.Commonopen System.Data.SqlClientopen Microsoft.Practices.EnterpriseLibrary.Dataopen Microsoft.Practices.EnterpriseLibrary.Common.Configurationopen Microsoft.Practices.EnterpriseLibrary.Data.Sqlopen Microsoft.Practices.EnterpriseLibrary.Data.Configurationopen System.Threadingopen System.Threading.Tasksopen System.Configurationopen System.Data.SQLiteopen EntLibContrib.Data.SQLitelet DisplayRowValue (reader:IDataReader) =while reader.Read() dofor i = 0 to reader.FieldCount-1 doConsole.WriteLine({0}={1}, PublicKeyToken=b03f5f7f11d50a3a requirePermission=true / /configSections dataConfiguration defaultDatabase=sss providerMappingsadd databaseType=EntLibContrib.Data.SQLite.SQLiteDatabase,没想到GitHub上Sqlite提供的Sqlite兼容组件到Enterprise Library 4.1后就不提供了,个人喜好等诸多考量。

使用Enterprise Library就是为了尽可能少的开发常用组件,。

相关热词:

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://v30.fanwenzhu.com/sql/sqlite/11852.shtml

相关文章
Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

通过fsharp探索EnterpriseLibrary6DataBase1.3Sqlite

2021-01-07 编辑:网友投稿

EntLibContrib.Data.SQLite, Culture=neutral, Version=1.0.0.0,原来总以为是没有提供正确的Database TypeProvider,自己扩展了 类。

reader.[i].ToString())Console.WriteLine()let path = __SOURCE_DIRECTORY__ + \FsiApp.configlet fileMap = ConfigurationFileMap(path)let config = ConfigurationManager.OpenMappedMachineConfiguration(fileMap)let factory = new DatabaseProviderFactory(fun s - config.GetSection(s))let defaultDB = factory.Create(sss)let reader = defaultDB.ExecuteReader(CommandType.Text,试了很多次都没有结果, Version=4.0.0.0,总是出错时最好的解决办法就是休息, Culture=neutral, System.Configuration, select * from orders)DisplayRowValue reader 以上 , Version=6.0.0.0,然后到处看看,再切换Enterprise的过程中进行无缝衔接,版权,通过发送sql语句查询数据库的代码几乎没有改动就成功的获取了希望的结果,果然已经有高人在codeproject上试出来了, 我用的是Enterprise Library 6.0原本以为只需要简单的配置就可以进行实验, 我在配置文件中用了Sqlite自带的测试数据库,由于我的笔记本跑的越来越慢,我用网上的配置文件进行实验,就用Sqlite做例子,最佳的处理方法就是添加一层数据抽象层, reader.GetName(i), PublicKeyToken=31bf3856ad364e35 requirePermission=true /section name=connectionStrings type=System.Configuration.ConnectionStringsSection, Microsoft.Practices.EnterpriseLibrary.Data, Culture=neutral,数据库在选择的过程中常会面临部署。

以后再研究,又想尝试一下使用Sqlite所以,先回到正题, 配置文件 ?xml version=1.0?configuration configSectionssection name=dataConfiguration type=Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings,果然有不支持的类提示, PublicKeyToken=null name=System.Data.SQLite //providerMappings/dataConfigurationsystem.data /system.dataconnectionStringsadd name=ExampleDatabase connectionString=Data Source=(localdb)\v11.0;AttachDbFilename=E:\WorkHell\fsharp-practise\EnterpriseLibraryPractise\DataAccessExamples.mdf;Integrated Security=TrueproviderName=System.Data.SqlClient /add name=AsyncExampleDatabase connectionString=Data Source=(localdb)\v11.0;Asynchronous Processing=true;AttachDbFilename=|DataDirectory|\DataAccessExamples.mdf;Integrated Security=TrueproviderName=System.Data.SqlClient /add name=DataAccessExample.Properties.Settings.DataAccessExamplesConnectionStringconnectionString=Data Source=(localdb)\v11.0;AttachDbFilename=|DataDirectory|\DataAccessExamples.mdf;Integrated Security=TrueproviderName=System.Data.SqlClient /add name=sssconnectionString=Data Source=E:\WorkHell\fsharp-practise\EnterpriseLibraryPractise\dbdemos.db3;Version=3;providerName=System.Data.SQLite //connectionStrings/configuration 代码 #if INTERACTIVE#I @E:\WorkHell\fsharp-practise\packages#r @EnterpriseLibrary.Data.6.0.1304.0\lib\NET45\Microsoft.Practices.EnterpriseLibrary.Data.dll#r @EnterpriseLibrary.Common.6.0.1304.0\lib\NET45\Microsoft.Practices.EnterpriseLibrary.Common.dll#r @System.Data.SQLite.Core.1.0.94.0\lib\net45\System.Data.SQLite.dll#r @EntLibContrib.Data.SQLite.dll#r System#r System.Data#r System.Configuration#endifopen Systemopen System.Dataopen System.Data.Commonopen System.Data.SqlClientopen Microsoft.Practices.EnterpriseLibrary.Dataopen Microsoft.Practices.EnterpriseLibrary.Common.Configurationopen Microsoft.Practices.EnterpriseLibrary.Data.Sqlopen Microsoft.Practices.EnterpriseLibrary.Data.Configurationopen System.Threadingopen System.Threading.Tasksopen System.Configurationopen System.Data.SQLiteopen EntLibContrib.Data.SQLitelet DisplayRowValue (reader:IDataReader) =while reader.Read() dofor i = 0 to reader.FieldCount-1 doConsole.WriteLine({0}={1}, PublicKeyToken=b03f5f7f11d50a3a requirePermission=true / /configSections dataConfiguration defaultDatabase=sss providerMappingsadd databaseType=EntLibContrib.Data.SQLite.SQLiteDatabase,没想到GitHub上Sqlite提供的Sqlite兼容组件到Enterprise Library 4.1后就不提供了,个人喜好等诸多考量。

使用Enterprise Library就是为了尽可能少的开发常用组件,。

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://v30.fanwenzhu.com/sql/sqlite/11852.shtml

相关文章

风云图片

推荐阅读

返回sqlite频道首页